home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sea_deckhouse_commie.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  72 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SEA_Deckhouse_Commie.cog
  4. # Small Cog to keep track on the one bruiser in the stern deckhouse of the pudovkin 
  5. #
  6. #
  7. # [JM]
  8. #
  9. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ========================================================================================
  12.  
  13. symbols
  14.  
  15. message     startup
  16. message     crossed
  17. message     killed
  18.  
  19.  
  20.  
  21. thing       Bruiser00
  22.  
  23. thing       BruiserTele00
  24.  
  25. surface     Activate0       LinkID=1
  26. surface     Activate1       LinkID=1
  27.  
  28. surface     Deactivate0     LinkID=2
  29. surface     Deactivate1     LinkID=2
  30.  
  31.  
  32. end
  33. # ========================================================================================
  34. code
  35. # ========================================================================================
  36. startup:
  37.  
  38.     AISetInstinctWpntMode(Bruiser00);
  39.     AISetCutsceneMode(Bruiser00);
  40.  
  41.     return;
  42.     
  43. # ========================================================================================
  44. crossed:
  45.  
  46.     if(Bruiser00 == -1) return;
  47.     
  48.     If(GetSenderID() == 1)
  49.     {
  50.         AIClearCutsceneMode(Bruiser00);
  51.     }
  52.     
  53.     else if(GetSenderID() == 2)
  54.     {
  55.         AISetCutsceneMode(Bruiser00);
  56.         TeleportThing(Bruiser00, BruiserTele00);
  57.     }                                         
  58.  
  59.     return;
  60.     
  61. # ========================================================================================
  62. killed:
  63.  
  64.     if(GetSenderRef() == Bruiser00) Bruiser00 = -1;
  65.  
  66.     return;
  67.     
  68. # ========================================================================================
  69.  
  70. end
  71.